package xml;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root
public class Pair {
	
	@Attribute
	private int id;
	@Attribute(required = false)
	private String entailment;
	@Attribute
	private String task;
	
	@Element
	private String t;

    @Element
	private String h;


    public Pair() {

    }

    public Pair(int id, String entailment, String t, String h) {
        this.id = id;
        this.entailment = entailment;
        this.t = t;
        this.h = h;
    }

    public int getId() {
		return id;
	}


	public String getEntailment() {
		return entailment;
	}

	public String getTask() {
		return task;
	}

	public String getT() {
		return t;
	}

	public String getH() {
		return h;
	}

    @Override
    public String toString() {
        return "Pair{" +
                "id=" + id +
                ", entailment='" + entailment + '\'' +
                ", task='" + task + '\'' +
                ", t='" + t + '\'' +
                ", h='" + h + '\'' +
                '}';
    }

}


